<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/9 0009
 * Time: 15:54
 */
namespace app\api\model;

class ImageInfos extends \app\api\model\common
{
    protected $table = 'fd_images_infos';

    public function getAlls($where){
        $res = self::where($where)->select();
        return $res = $res?collection($res)->toArray():'';
    }

    public function getOne($field,$where){
        $res = self::where($where)->field($field)->find();
        return $res = $res?$res->toArray():'';
    }
}